<!DOCTYPE html>
<html>
<head>
{include file=$Const.Include_meta_head}
{include file=$Const.Include_css css=$Inf.css_paths}
{include file=$Const.Include_js js=$Inf.js_paths}

<title>{$Data.title}</title>
</head>

<body>
{if isset($Inf.IO.SESSION.online) && $Inf.IO.SESSION.online == 1}
	<div>Вы в игре под логином: {$Inf.IO.SESSION.login}</div>	
	
	{if isset($Data.list_games)}
		<div style="color: black; width: 60px; float: left;">gamers</div>
		<div style="color: black; width: 100%">time</div>

		{foreach from = $Data.list_games item = i}
				<a href="/Driver/page/5/id={$i.id}">
					<div style="background: #fc0; width: 250px;">
						<div style="{if $i.owner == $Inf.IO.SESSION.id_gamers}background: gray;color: #aaa;{else}background: #0c0;color: green;{/if}">
							<div style=" width: 60px; float: left;">{$i.login}</div>
							<div style=" width: 100%">{$i.time}</div>
						</div>
					</div>
				</a>
		{/foreach}
	{/if}
	
	<form method=post>
		<input type="hidden" name = "addGame" value="addGame">
		<input type="submit" value="Создать еще игру">
	</form>

{else}
	<div>Вы не в игре!</div>	
{/if}	
</body>
</html>


